{include file="header.html"}

<script type="text/javascript">
//<!CDATA[
$(function(){
  
    
    $("#search").click(function(){
    	$("#act").val("index");

    	$("#form1").submit();
    });
});
//]]>
</script>

<div id="rightTop">
	<p>{$lang.haul}</p>
	<ul class="subnav">
		<li><span>{$lang.manage}</span>
		</li>
<!-- 		{if $wid} -->
		<li><a class="btn1" href="index.php?app=waybill&amp;act=edit&amp;id={$wid}">返回运单</a>
		</li>
<!-- 		{/if} -->
	</ul>
</div>
<div class="mrightTop">
	<div class="fontl">
		<form method="get">
			<div class="left">
		
               
                  
                  
                   
                    <input type="hidden" name="app" value="haul" />
                <input type="hidden" name="act" value="index" />
                <input type="hidden" name="wid" value="{$wid}" />
             	 	运程名称:
                <input class="queryInput" type="text" name="h_name" value="{$smarty.get.h_name}" />
				完成状态:
                <select class="querySelect" id="type_id" name="type_id">
                <option value="">{$lang.select_pls}</option>
                {html_options options=$status selected=$smarty.get.type_id}
                </select>
             
             
                <input type="submit" class="formbtn" value="{$lang.query}" />
          
      
                  
                  
                  
			</div>
		</form>
	</div>
	<div class="fontr">{include file=page.top.html}</div>
	<div class="clear:both;"></div>
</div>
<div class="tdare">
	<table width="100%" cellspacing="0" class="dataTable">
		<!--{if $haul}-->
		<tr class="tatr1">
			<td width="20" class="firstCell"><input type="checkbox"
				class="checkall" />
			</td>
		
		
			<td align="left">{$lang.h_name}</td>
			<td>{$lang.h_order}</td>
			<td>{$lang.h_linkman}</td>
			<td>{$lang.h_linkman_tel}</td>
			<td>{$lang.h_note}</td>
			<td>{$lang.h_required_service_date}</td>
			<td>{$lang.h_finished}</td>
			<td style="text-align: center;width: 80px">操作</td>
		</tr>
		<!--{/if}-->
		<!--{foreach from=$haul item=w}-->
		<tr class="tatr2">
		    <td class="firstCell"> <input type="checkbox" class="checkitem" value="{$w.h_tid}"/></td>
		
			
			<td>{$w.h_name|escape}</td>
			<td>{$w.h_order}</td>
			<td>{$w.h_linkman}</td>
			<td>{$w.h_linkman_tel}</td>
			<td>{$w.h_note}</td>
			<td>{$w.h_required_service_date|date:Y-m-d H:i}</td>
           <td>
           
              <!-- {if $w.h_finished==2} -->
                                                     完成
                 <!--{elseif $w.h_finished==0}-->
                                                       未开始
                 <!--{elseif $w.h_finished==-1}-->
                 		异常
                 <!-- {/if} -->
           
           </td>
                       <td><a href="index.php?app=haul&amp;act=edit&amp;id={$w.h_tid}&amp;stauts={$stauts}">{$lang.edit}</a>
<!--                        {if $w.h_finished==0} -->
             |
                <a href="javascript:drop_confirm('{$lang.drop_confirm}', 'index.php?app=haul&amp;act=drop&amp;id={$w.h_tid}');">{$lang.drop}</a>
<!--                 {/if} -->
                </td>
		</tr>
		<!--{foreachelse}-->
		<tr class="no_data">
			<td colspan="7">{$lang.no_data}</td>
		</tr>
		<!--{/foreach}-->
	</table>
	<!--{if $haul}-->
	<div id="dataFuncs">
		<div class="pageLinks">{include file=page.bottom.html}</div>
		<div id="batchAction" class="left paddingT15" style="padding-top: 10px;">
			&nbsp;&nbsp; <input class="formbtn batchButton" type="button"
				value="{$lang.drop}" name="id" uri="index.php?app=haul&act=drop"
				presubmit="confirm('{$lang.drop_confirm}');" /> &nbsp;&nbsp;
			<!--<input class="formbtn batchButton" type="button" value="lang.update_order" name="id" presubmit="updateOrder(this);" />-->
		</div>
		<div class="clear:both;"></div>
	</div>
	<div class="clear"></div>
	<!--{/if}-->
</div>
{include file="footer.html"}